const Mock = require('better-mock')
var todos = [
  {
    id: 0,
    content: 'aaaa'
  }
]

Mock.mock('http://api.cms.liulongbin.top/api/feedback', 'get', function (options) {
  return {
    data: todos
  }
})
Mock.mock('http://api.cms.liulongbin.top/api/feedback', 'post', function (options) {
  var body = JSON.parse(options.body)
  todos.push(body)
})
